package cn.gjxblog.aop.proxy.spring.demo1;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class MyMethodInterceptor implements MethodInterceptor {

    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("MethodInterceptor方法调用前执行");
        Object proceed = invocation.proceed();
        System.out.println("MethodInterceptor方法调用后执行");
        return proceed;
    }
}
